package com.cskaoyan.controller;

import com.cskaoyan.bean.Role;
import com.cskaoyan.service.RoleService;
import com.cskaoyan.vo.BaseRespVo;
import com.cskaoyan.vo.OptionVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @description:
 * @author: libugu@cskaoyan.com
 * @date 2021/4/9 - 21:35
 */
@RestController
public class RoleController {

  @Autowired
    RoleService roleService;

  @RequestMapping("admin/role/options")
    public BaseRespVo options(){

      List<OptionVo> options =   roleService.query();

      return BaseRespVo.ok(options);
  }

}
